package com.eliza.vertx.library.domain


//<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
//<dependency>
//    <groupId>com.fasterxml.jackson.core</groupId>
//    <artifactId>jackson-databind</artifactId>
//    <version>2.13.1</version>
//</dependency>
/**
 * 需要无参构造
 *
 *  */
//serialized
//@Serialized //Jackson
class User {
    var name: String = ""
    var age: Int = 0

    constructor()
    constructor(name: String, age: Int) {
        this.name = name
        this.age = age
    }

    override fun toString(): String {
        return "User(name='$name', age=$age)"
    }

}